xen.git
19 years ago[qemu patches] Update patches upto changeset 12814:c3ad3fcfe3.
Christian Limpach [Fri, 8 Dec 2006 18:37:19 +0000 (18:37 +0000)]
[qemu patches] Update patches upto changeset 12814:c3ad3fcfe3.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu patches] Update patches upto changeset 12756:1d32fb45e0.
Christian Limpach [Fri, 8 Dec 2006 18:31:01 +0000 (18:31 +0000)]
[qemu patches] Update patches upto changeset 12756:1d32fb45e0.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoxm block-attach can take an optional 5th argument, show it in the help.
john.levon@sun.com [Fri, 8 Dec 2006 15:22:21 +0000 (07:22 -0800)]
xm block-attach can take an optional 5th argument, show it in the help.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[LIBXC] Make strerror() thread-safe by protecting it with a mutex.
kfraser@localhost.localdomain [Fri, 8 Dec 2006 15:59:30 +0000 (15:59 +0000)]
[LIBXC] Make strerror() thread-safe by protecting it with a mutex.
Using strerror_r() is made difficult by the different GNU definition,
and different distros variously choose the POSIX or GNU prototype.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Keep vif IP addresses as space separated string.
Alastair Tse [Fri, 8 Dec 2006 13:31:21 +0000 (13:31 +0000)]
[XEND] Keep vif IP addresses as space separated string.

They were inconsistently represented as strings or lists making it
difficult to know the type of the IP parameter for vifs. Since both xm
and DevController represents these as space separated strings, that is
what it will be stored as.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Make sure UUID is in the right format.
Alastair Tse [Fri, 8 Dec 2006 13:28:22 +0000 (13:28 +0000)]
[XEND] Make sure UUID is in the right format.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[LIBXC] Clean up use of sterror(). Define a thread-safe
kfraser@localhost.localdomain [Fri, 8 Dec 2006 11:57:06 +0000 (11:57 +0000)]
[LIBXC] Clean up use of sterror(). Define a thread-safe
version which uses strerror_r(), and tries to cope with
the POSIX and GNU versions of that function.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Kexec: Remove remainder of kexec-generic.patch
Ian Campbell [Fri, 8 Dec 2006 11:47:09 +0000 (11:47 +0000)]
[LINUX] Kexec: Remove remainder of kexec-generic.patch

Rename xen_machine_kexec() to just machine_kexec() and only compile in
the Xen or native version as appropriate.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Kexec: Reapply kexec patches to sparse tree.
Ian Campbell [Fri, 8 Dec 2006 11:47:09 +0000 (11:47 +0000)]
[LINUX] Kexec: Reapply kexec patches to sparse tree.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Kexec: add kexec files to sparse tree.
Ian Campbell [Fri, 8 Dec 2006 11:47:09 +0000 (11:47 +0000)]
[LINUX] Kexec: add kexec files to sparse tree.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] kexec: remove patches which are not straight backports.
Ian Campbell [Fri, 8 Dec 2006 11:47:09 +0000 (11:47 +0000)]
[LINUX] kexec: remove patches which are not straight backports.

Their contents will be added to the sparse tree in a subsequent patch.

Changes to kernel/sys.c in kexec-generic.patch remain for now. These
will be taken care of in a later patch.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Kexec: Do not bug if a kexec hypercall fails.
Ian Campbell [Fri, 8 Dec 2006 11:46:48 +0000 (11:46 +0000)]
[LINUX] Kexec: Do not bug if a kexec hypercall fails.

This is non fatal since we can recover and boot without kexec
functionality.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Implement XENMEM_set_memory_map, which specifies memory map to
kfraser@localhost.localdomain [Fri, 8 Dec 2006 11:30:30 +0000 (11:30 +0000)]
[XEN] Implement XENMEM_set_memory_map, which specifies memory map to
be returned by XENMEM_memory_map. Hook this into the domain builder.

Based on a patch by Glauber de Oliveira Costa <gcosta@redhat.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Fix xm vcpu-set when decrementing VCPU count
Alastair Tse [Fri, 8 Dec 2006 11:08:26 +0000 (11:08 +0000)]
[XEND] Fix xm vcpu-set when decrementing VCPU count

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoFix potential minor memory leak.
Steven Hand [Fri, 8 Dec 2006 10:48:46 +0000 (10:48 +0000)]
Fix potential minor memory leak.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoDownload and symlink the i386 version of the ramdisk when running on x86_64.
Ewan Mellor [Fri, 8 Dec 2006 10:32:48 +0000 (10:32 +0000)]
Download and symlink the i386 version of the ramdisk when running on x86_64.
This means that people don't need to explicitly set BR_ARCH.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[LINUX] CONFIG_XEN_BACKEND=m build properly.
kfraser@localhost.localdomain [Fri, 8 Dec 2006 09:35:00 +0000 (09:35 +0000)]
[LINUX] CONFIG_XEN_BACKEND=m build properly.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[LINUX] Make CONFIG_XEN_FRAMEBUFFER=m build properly.
kfraser@localhost.localdomain [Fri, 8 Dec 2006 09:34:24 +0000 (09:34 +0000)]
[LINUX] Make CONFIG_XEN_FRAMEBUFFER=m build properly.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMake XEN_DOMCTL_getdomaininfo return shared_info_frame in gmfn not mfn.
kfraser@localhost.localdomain [Fri, 8 Dec 2006 09:32:42 +0000 (09:32 +0000)]
Make XEN_DOMCTL_getdomaininfo return shared_info_frame in gmfn not mfn.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[LINUX] Make xb_waitq static.
kfraser@localhost.localdomain [Fri, 8 Dec 2006 09:27:39 +0000 (09:27 +0000)]
[LINUX] Make xb_waitq static.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[LINUX] Clean up and clarify find_unbound_irq().
kfraser@localhost.localdomain [Fri, 8 Dec 2006 09:19:37 +0000 (09:19 +0000)]
[LINUX] Clean up and clarify find_unbound_irq().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix PERROR.
Ewan Mellor [Thu, 7 Dec 2006 17:48:35 +0000 (17:48 +0000)]
Fix PERROR.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDiagnose bad config files.
Ewan Mellor [Thu, 7 Dec 2006 17:47:43 +0000 (17:47 +0000)]
Diagnose bad config files.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge
Alastair Tse [Thu, 7 Dec 2006 16:48:23 +0000 (16:48 +0000)]
Merge

19 years ago[XEND] Only return valid VIF and VBD parameters via Xen API.
Alastair Tse [Thu, 7 Dec 2006 16:43:22 +0000 (16:43 +0000)]
[XEND] Only return valid VIF and VBD parameters via Xen API.

Also fix typo for memory_dynamic_{min,max}.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[LINUX] Fail gracefully if we run out of spare IRQs.
kfraser@localhost.localdomain [Thu, 7 Dec 2006 16:43:08 +0000 (16:43 +0000)]
[LINUX] Fail gracefully if we run out of spare IRQs.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Alastair Tse [Thu, 7 Dec 2006 16:09:04 +0000 (16:09 +0000)]
Merge

19 years ago[XEND] Sync Xen API with newer VDB and VIF specification.
Alastair Tse [Thu, 7 Dec 2006 16:08:44 +0000 (16:08 +0000)]
[XEND] Sync Xen API with newer VDB and VIF specification.

Fix breakage with storing VIF and VBD refs, remove extraneous
debugging. Also fixing some type errors in default values for Xen API
if things are missing in XendConfig.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEN] Add new safe pte update macros and use as necessary when
kfraser@localhost.localdomain [Thu, 7 Dec 2006 14:57:14 +0000 (14:57 +0000)]
[XEN] Add new safe pte update macros and use as necessary when
updating active pagetables.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Make SXP parsing re-use device_add in XendConfig
Alastair Tse [Thu, 7 Dec 2006 14:40:13 +0000 (14:40 +0000)]
[XEND] Make SXP parsing re-use device_add in XendConfig

This will fix the IP address configuration problem for vifs.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Prevent None values from appearing in Device SXP
Alastair Tse [Thu, 7 Dec 2006 14:38:16 +0000 (14:38 +0000)]
[XEND] Prevent None values from appearing in Device SXP

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEN] Early page fault handler to deal with spurious page faults.
kfraser@localhost.localdomain [Thu, 7 Dec 2006 14:03:54 +0000 (14:03 +0000)]
[XEN] Early page fault handler to deal with spurious page faults.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Fix resume for managed domains.
Alastair Tse [Thu, 7 Dec 2006 13:47:13 +0000 (13:47 +0000)]
[XEND] Fix resume for managed domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoMerge
Tim Deegan [Thu, 7 Dec 2006 13:18:08 +0000 (13:18 +0000)]
Merge

19 years ago[XEN] Init pae_l3_cache lock earlier
Tim Deegan [Thu, 7 Dec 2006 13:14:44 +0000 (13:14 +0000)]
[XEN] Init pae_l3_cache lock earlier
In particular, before hvm_vcpu_initialise causes a CR3 update.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoThis patch checks the contents of XENDOMAINS_SAVE before the restore
Ewan Mellor [Thu, 7 Dec 2006 12:23:35 +0000 (12:23 +0000)]
This patch checks the contents of XENDOMAINS_SAVE before the restore
process begins, and prevents xendomains from attempting to start any
domain that appears there, whether the domain started successfully or
not.

Signed off by: Hugh Brock <hbrock@redhat.com>

19 years agoThe new lifecycle patches in xen-unstable added 3 new operations which can
Ewan Mellor [Thu, 7 Dec 2006 12:15:30 +0000 (12:15 +0000)]
The new lifecycle patches in xen-unstable added 3 new operations which can
be performed on domains - new, start and delete.  libvirt has had no-op
stub implementations of these APIs for a while & thus we'd enable their
use for Xen 3.0.4 builds. The new APIs are not currently exposed via the
existing SEXPR protocol, and since the new Xen-API protocol is unsupported
tech-preview for 3.0.4 we don't want to re-write against that just yet.

Thus the attached patch adds the 3 neccessary bindings for the SEXPR protocol
to allow the lifecycle functionality to be invoked. It also allows the 'state'
parameter to be specified when listing domains, so we can explicitly request
inactive domains if we know we're running against a 3.0.4 era XenD

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoScrub VNC passwords from the logs.
Ewan Mellor [Thu, 7 Dec 2006 12:14:22 +0000 (12:14 +0000)]
Scrub VNC passwords from the logs.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoDo an explicit check for bootloader path existence prior
Ewan Mellor [Thu, 7 Dec 2006 12:11:40 +0000 (12:11 +0000)]
Do an explicit check for bootloader path existence prior
to the one for executable permissions. Also print out the path being
tested.

Signed-off-by: Daniel P, Berrange <berrange@redhat.com>
19 years agoThe HTTP service used for SEXPR based RPC calls currently serializes all
Ewan Mellor [Thu, 7 Dec 2006 12:07:53 +0000 (12:07 +0000)]
The HTTP service used for SEXPR based RPC calls currently serializes all
incoming client requests. Since some requests can take non-trivial time
blocking out other clients in this way has bad consequences. The attached
patch makes XenD spawn a new thread to handle each incoming HTTP request.
This same approach is already taken in the XML-RPC service in XenD so I
don't anticipate any multi-thread issues (at least none which don't already
exist).

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[HVM] qemu mouse: Adds support for USB mouse/tablet status check and
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:52:26 +0000 (11:52 +0000)]
[HVM] qemu mouse: Adds support for USB mouse/tablet status check and
restricts Universal Host Controller interrupt generating when received
NAK in interrupt transfer.

According to usb spec, USB mouse/tablet device returns NAK to host
controller if its status does not alter in interrupt transfer.
And UHC should leave a TD active when receiving NAK and execute this
incompleted TD in a subseqent frame. UHC only generates an interrupt
on complete after the TD with ICO bit is completed.

This patch make UHC & USB mouse/tablet behave consistently with spec.

Signed-off-by: Xinmei Huang <xinmei.huang@intel.com>
19 years agoMerge
Alastair Tse [Thu, 7 Dec 2006 11:51:22 +0000 (11:51 +0000)]
Merge

19 years ago[XM] Fix xm uptime TypeError exception.
Alastair Tse [Thu, 7 Dec 2006 11:50:11 +0000 (11:50 +0000)]
[XM] Fix xm uptime TypeError exception.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agomerge
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:47:10 +0000 (11:47 +0000)]
merge

19 years ago[LIBXC] Python error extraction tweak.
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:46:07 +0000 (11:46 +0000)]
[LIBXC] Python error extraction tweak.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove broken call to XendDomainInfo.getSsidref(), fixing the obsolete HTTP
Ewan Mellor [Thu, 7 Dec 2006 11:45:04 +0000 (11:45 +0000)]
Remove broken call to XendDomainInfo.getSsidref(), fixing the obsolete HTTP
server.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge
Alastair Tse [Thu, 7 Dec 2006 11:45:00 +0000 (11:45 +0000)]
Merge

19 years agoMerge
Alastair Tse [Thu, 7 Dec 2006 11:44:05 +0000 (11:44 +0000)]
Merge

19 years agoRemove unused KEXEC_RANGE_VA_XEN.
Ian Campbell [Thu, 7 Dec 2006 11:43:19 +0000 (11:43 +0000)]
Remove unused KEXEC_RANGE_VA_XEN.

KEXEC_RANGE_VA_XEN is currently unused and there is no point in exporting it.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
---

 Applies to xen-unstable-12756

 xen/common/kexec.c         |   13 +++----------
 xen/include/public/kexec.h |    3 +--
 2 files changed, 4 insertions(+), 12 deletions(-)

19 years ago[XEND] Fix configureBootloader to work with HTTP/SEXP.
Alastair Tse [Thu, 7 Dec 2006 11:41:38 +0000 (11:41 +0000)]
[XEND] Fix configureBootloader to work with HTTP/SEXP.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[LIBXC] Add an error reporting API to the libxc library.
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:36:26 +0000 (11:36 +0000)]
[LIBXC] Add an error reporting API to the libxc library.

 - An 'xc_error' struct is used to pass around error
   details. Currently contains two members 'code' an enumeration of
   error types, and 'message' a free text description of the specific
   problem.

 - The xc_get_last_error() method returns a const pointer to the
   internal instance of this struct manged by libxc. By returning a
   const pointer we can add extra members to the end of the struct at
   any time without worrying about ABI of callers. This will let us
   provide more fine-grained info if needed in the future.

 - The xc_error instance is statically defined inside libxc and marked
   __thread. This ensures that errors are recorded per-thread, and
   that when dealing with errors we never need to call malloc - all
   storage needed is statically allocated.

 - The xc_clear_last_error() method resets any currently recorded
   error details

 - The xc_error_code_to_desc() method converts the integer error code
   into a generic user facing messsage. eg "Invalid kernel". Together
   with the 'message' field from xc_error, this provides the user
   visible feedback. eg "Invalid kernel: Non PAE-kernel on PAE host."

 - A callback can be registered with xc_set_error_handler to receive
   notification whenever an error is recorded, rather than querying
   for error details after the fact with xc_get_last_error

 - If built with -DDEBUG set, a default error handler will be
   registered which calls fprintf(stderr), thus maintaining current
   behaviour of logging errors to stderr during developer builds.

 - The python binding for libxc is updated to use xc_get_last_error
   to pull out error details whenever appropriate, instead of
   returning info based on 'errno'

 - The xc_set_error method is private to libxc internals, and is used
   for setting error details

 - The ERROR and PERROR macros have been updated to call xc_set_error
   automatically specifying XC_INTERNAL_ERROR as the error code. This
   gives a generic error report for all current failure points

 - Some uses of the ERROR macro have been replaced with explicit
   calls to xc_set_error to enable finer grained error reporting. In
   particular the code dealing with invalid kernel types uses this
   to report about PAE/architecture/wordsize mismatches

The patch has been tested by calling xm create against a varietry of
config files defining invalid kernels of various kinds. It has also
been tested with libvirt talking to xend. In both cases the error
messages were propagated all the way back up the stack.

There is only one place where I need to do further work. The suspend
& restore APIs in Xend invoke external helper programs rather than
calling libxc directly. This means that error details are essentially
lost. Since there is already code in XenD which scans STDERR from
these programs I will investigate adapting this to extract actual
error messages from these helpers.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[XEN] Make multiboot-related code more readable.
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:22:26 +0000 (11:22 +0000)]
[XEN] Make multiboot-related code more readable.
Tested on i386 and x86_64 with GRUB and PXELINUX bootmanagers.

From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoVMXAssist cleanups
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:18:38 +0000 (11:18 +0000)]
VMXAssist cleanups

Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[VTPM][HVM] Transmit the locality in which the command was sent in the
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:17:28 +0000 (11:17 +0000)]
[VTPM][HVM] Transmit the locality in which the command was sent in the
highest 3 bits of the 4 bytes prepended to each packet.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[HVM] Fix reboot failure when configured 'cdrom', i.e. bug 832.
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:16:17 +0000 (11:16 +0000)]
[HVM] Fix reboot failure when configured 'cdrom', i.e. bug 832.
Signed-off-by : Xinmei Huang <xinmei.huang@intel.com>

19 years agomerge
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:14:21 +0000 (11:14 +0000)]
merge

19 years ago[HVM] qemu: Add guest address-space mapping cache.
kfraser@localhost.localdomain [Thu, 7 Dec 2006 11:12:52 +0000 (11:12 +0000)]
[HVM] qemu: Add guest address-space mapping cache.

On IA32 host or IA32 PAE host, at present, generally, we can't create
an HVM guest with more than 2G memory, because generally it's almost
impossible for Qemu to find a large enough and consecutive virtual
address space to map an HVM guest's whole physical address space.
The attached patch fixes this issue using dynamic mapping based on
little blocks of memory.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Update vcpu_avail when parsing configuration.
Alastair Tse [Thu, 7 Dec 2006 11:12:05 +0000 (11:12 +0000)]
[XEND] Update vcpu_avail when parsing configuration.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix reboot for HVM domains if cdrom is empty.
Alastair Tse [Thu, 7 Dec 2006 10:54:43 +0000 (10:54 +0000)]
[XEND] Fix reboot for HVM domains if cdrom is empty.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoAdded VM.set_VCPUs_features_force_on, VM.set_VCPUs_features_force_off,
Ewan Mellor [Wed, 6 Dec 2006 16:33:48 +0000 (16:33 +0000)]
Added VM.set_VCPUs_features_force_on, VM.set_VCPUs_features_force_off,
VM.set_otherConfig.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMake VM.VCPUs.number a writable field.
Ewan Mellor [Wed, 6 Dec 2006 16:26:53 +0000 (16:26 +0000)]
Make VM.VCPUs.number a writable field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded VBD.type field (CD or Disk).
Ewan Mellor [Wed, 6 Dec 2006 15:45:09 +0000 (15:45 +0000)]
Added VBD.type field (CD or Disk).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdd extra detail to the VM.destroy description.
Ewan Mellor [Wed, 6 Dec 2006 15:42:28 +0000 (15:42 +0000)]
Add extra detail to the VM.destroy description.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdd VM.auto_power_on field.
Ewan Mellor [Wed, 6 Dec 2006 15:40:26 +0000 (15:40 +0000)]
Add VM.auto_power_on field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoClarify that memory values are in bytes.
Ewan Mellor [Wed, 6 Dec 2006 15:38:29 +0000 (15:38 +0000)]
Clarify that memory values are in bytes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImproved task handling model.
Ewan Mellor [Wed, 6 Dec 2006 15:20:03 +0000 (15:20 +0000)]
Improved task handling model.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy up the get_by_name_label description.
Ewan Mellor [Wed, 6 Dec 2006 15:13:33 +0000 (15:13 +0000)]
Tidy up the get_by_name_label description.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoClarify that the self parameter is an object reference, not the instance (i.e.
Ewan Mellor [Wed, 6 Dec 2006 15:05:23 +0000 (15:05 +0000)]
Clarify that the self parameter is an object reference, not the instance (i.e.
record) itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy up the get_record and get_by_uuid descriptions.
Ewan Mellor [Wed, 6 Dec 2006 15:01:08 +0000 (15:01 +0000)]
Tidy up the get_record and get_by_uuid descriptions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMore description tidyups -- constructors and destructors this time.
Ewan Mellor [Wed, 6 Dec 2006 13:28:37 +0000 (13:28 +0000)]
More description tidyups -- constructors and destructors this time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy-up some of the descriptions.
Ewan Mellor [Wed, 6 Dec 2006 13:24:28 +0000 (13:24 +0000)]
Tidy-up some of the descriptions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] remove unused monitor_vtable mapping.
Tim Deegan [Wed, 6 Dec 2006 12:13:22 +0000 (12:13 +0000)]
[XEN] remove unused monitor_vtable mapping.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoAdded Xen-API implementations for xm pause, xm unpause, xm destroy, xm rename,
Ewan Mellor [Wed, 6 Dec 2006 11:25:51 +0000 (11:25 +0000)]
Added Xen-API implementations for xm pause, xm unpause, xm destroy, xm rename,
and fix xm suspend and xm delete.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement VM.set_name_label.
Ewan Mellor [Wed, 6 Dec 2006 11:24:37 +0000 (11:24 +0000)]
Implement VM.set_name_label.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded support for configuration file for xm, and use that to specify
Ewan Mellor [Wed, 6 Dec 2006 11:02:32 +0000 (11:02 +0000)]
Added support for configuration file for xm, and use that to specify
contact and authentication details for the Xen-API server.

The default behaviour is still to use the existing legacy XML-RPC server.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded server proxy and session manager for Xen-API clients.
Ewan Mellor [Wed, 6 Dec 2006 10:47:31 +0000 (10:47 +0000)]
Added server proxy and session manager for Xen-API clients.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix server reloading when the HTTP server is enabled.
Ewan Mellor [Wed, 6 Dec 2006 10:37:10 +0000 (10:37 +0000)]
Fix server reloading when the HTTP server is enabled.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDon't trace inside SrvServer.py -- it's doing a one-second sleep in a loop, so
Ewan Mellor [Wed, 6 Dec 2006 10:13:46 +0000 (10:13 +0000)]
Don't trace inside SrvServer.py -- it's doing a one-second sleep in a loop, so
it just fills the trace with useless clutter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove the actual call routed by do_legacy_api_with_uuid out of the scope of
Ewan Mellor [Wed, 6 Dec 2006 10:12:39 +0000 (10:12 +0000)]
Move the actual call routed by do_legacy_api_with_uuid out of the scope of
the domains_lock.  The call itself is already locking as necessary, and it
is important for domain_start to be able to release the lock across the scope
of waitForDevices.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix HTTP server.
Ewan Mellor [Wed, 6 Dec 2006 10:10:06 +0000 (10:10 +0000)]
Fix HTTP server.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix error message.
Ewan Mellor [Tue, 5 Dec 2006 15:47:43 +0000 (15:47 +0000)]
Fix error message.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFixes a mistake in changeset 12732
Tim Deegan [Wed, 6 Dec 2006 10:05:41 +0000 (10:05 +0000)]
Fixes a mistake in changeset 12732
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
19 years ago[LINUX] The crash note resource should be nested inside the hypervisor
Ian Campbell [Tue, 5 Dec 2006 17:01:34 +0000 (17:01 +0000)]
[LINUX] The crash note resource should be nested inside the hypervisor
resource.

This was exposed by 12709:98413fa7826c which corrected the length of
the hypervisor resource.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] sh_gfn_to_mfn_foreign() must handle guest pfns above 4GB on PAE
Tim Deegan [Tue, 5 Dec 2006 12:42:29 +0000 (12:42 +0000)]
[XEN] sh_gfn_to_mfn_foreign() must handle guest pfns above 4GB on PAE
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoThis adds a recently added parameter to the vm.start call.
Ewan Mellor [Mon, 4 Dec 2006 19:13:55 +0000 (19:13 +0000)]
This adds a recently added parameter to the vm.start call.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoTidy.
Ewan Mellor [Mon, 4 Dec 2006 18:05:32 +0000 (18:05 +0000)]
Tidy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix numpad handling in QEMU's VNC server. The keymaps that we have include
Ewan Mellor [Mon, 4 Dec 2006 17:52:33 +0000 (17:52 +0000)]
Fix numpad handling in QEMU's VNC server.  The keymaps that we have include
information on which keys change depending upon the numlock setting, but
this isn't being used.  By forcing numlock on and off as necessary, when
receiving these keysyms through the VNC connection, we ensure that the
server's numlock status is the same as the client's.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoClose the server when instructed, so that we can reload on the same port, and
Ewan Mellor [Mon, 4 Dec 2006 13:57:18 +0000 (13:57 +0000)]
Close the server when instructed, so that we can reload on the same port, and
diagnose a server that fails to start.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDiagnose a failing server, rather than just locking up the whole daemon.
Ewan Mellor [Mon, 4 Dec 2006 13:56:27 +0000 (13:56 +0000)]
Diagnose a failing server, rather than just locking up the whole daemon.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded rudimentary "xend reload" functionality. This allows you to reconfigure
Ewan Mellor [Mon, 4 Dec 2006 13:37:53 +0000 (13:37 +0000)]
Added rudimentary "xend reload" functionality.  This allows you to reconfigure
the services offered by Xend, without restarting the daemon itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy error message.
Ewan Mellor [Mon, 4 Dec 2006 10:27:23 +0000 (10:27 +0000)]
Tidy error message.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMore capitalisation fixes.
Ewan Mellor [Mon, 4 Dec 2006 10:24:54 +0000 (10:24 +0000)]
More capitalisation fixes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoWith PERMISSIVE turned on, diagnose missing Enums and Bools, and improve the
Ewan Mellor [Mon, 4 Dec 2006 10:20:56 +0000 (10:20 +0000)]
With PERMISSIVE turned on, diagnose missing Enums and Bools, and improve the
diagnosis of missing structure values.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[QEMU] Error reporting in IDE device model.
kfraser@localhost.localdomain [Mon, 4 Dec 2006 09:29:26 +0000 (09:29 +0000)]
[QEMU] Error reporting in IDE device model.

Following on from my patch to make blktap report I/O errors back to
guest OS, a similar problem exists in the QEMU codebase. The IDE
driver never reports I/O errors during read/write operations back to
the guest OS. Instead all I/O operations are reported as
succesfull. If, for example, the host FS holding the disk image fills
up, then writes may fail due to lack of space. Since the guest OS
never sees these failures, it assumes all is well & will continue
writing. Eventually this can lead to severe & unrecoverable filesystem
corruption.

The attached patch fixes QEMU ide driver such that any failure of a
read or write operation sets the appropriate IDE status/error
registers. Having read the ATA-6 spec I think the most compliant
behaviour is to set the status register to 'READY_STAT | ERR_STAT',
and the error register to ABRT_ERR. There is already a convenience
function ide_abort_command() in the QEMU codebase which does just
this, so the attached patch simply calls that function.

With this patch the guest OS sees the I/O failure & the kernel logs
IDE errors and then retries the operation. This at least ensures that
the guest can be shutdown the out of space issue in the host corrected
and the guest restarted, without any serious filesystem damage having
occurred.

From: Daniel Berrange <berrange@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd XEN_FRAMEBUFFER to -xen defconfigs.
kfraser@localhost.localdomain [Mon, 4 Dec 2006 09:21:10 +0000 (09:21 +0000)]
Add XEN_FRAMEBUFFER to -xen defconfigs.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
19 years agoRemove useless segments push/pop in VMXAssist.
kfraser@localhost.localdomain [Mon, 4 Dec 2006 09:20:12 +0000 (09:20 +0000)]
Remove useless segments push/pop in VMXAssist.
According to Intel Spec, segments registors are cleared when exiting
virtual-8086 mode through trap or interrupts gate, so it's no need to
save their values in stack.
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[PATCH 02/02] Kexec / Kdump: Don't declare _end
Ian Campbell [Mon, 4 Dec 2006 09:08:47 +0000 (09:08 +0000)]
[PATCH 02/02] Kexec / Kdump: Don't declare _end

_end is already declared in xen/include/asm/config.h, so don't declare
it twice. This solves a powerpc/ia64 build problem where _end is declared
as char _end[] compared to unsigned long _end on x86.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
19 years ago[PATCH 01/02] Kexec / Kdump: Use NOTE_ALIGN() instead of ALIGN()
Ian Campbell [Mon, 4 Dec 2006 09:08:47 +0000 (09:08 +0000)]
[PATCH 01/02] Kexec / Kdump: Use NOTE_ALIGN() instead of ALIGN()

ALIGN() is already defined in xen/include/asm-ia64/config.h. This patch
renames ALIGN() to NOTE_ALIGN() to make the kexec code build on ia64.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
19 years ago[XEN] Fix 32-bit build.
kaf24@firebug.cl.cam.ac.uk [Sun, 3 Dec 2006 17:44:14 +0000 (17:44 +0000)]
[XEN] Fix 32-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Add 'insn_fetch' memory operation to the x86_emulator.
kaf24@localhost.localdomain [Sun, 3 Dec 2006 17:15:48 +0000 (17:15 +0000)]
[XEN] Add 'insn_fetch' memory operation to the x86_emulator.

This can be used to perform correct access checks, provide appropriate
error codes when injecting faults, and to implement an
instruction-stream prefetch cache (which is included here for HVM PTE
update emulations).

Signed-off-by: Keir Fraser <keir@xensource.com>